package com.cy.pj.eiems.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cy.pj.eiems.service.CourseService;
import com.cy.pj.eiems.vo.JsonResult;

@RestController
@RequestMapping("/course/")
public class CourseController {
	@Autowired
	private CourseService courseService;
	
	@RequestMapping("doFindObjects")
	public JsonResult doFindObjects(String coursename,Integer pageCurrent) {
		return new JsonResult(courseService.findObjects(coursename,pageCurrent));
	}
}
